widget: Get rid of parent_sensitive flag
authorBenjamin Otte <otte@redhat.com>
Wed, 30 Mar 2011 14:15:21 +0000 (16:15 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 30 Mar 2011 14:40:06 +0000 (16:40 +0200)
commit1e4396535065434c352881df8c26e050292c8c62
tree25bcf9579acd9e1a5e273e81bc9dd88e3300f230
parentb2f872112a2a8d8dd915650718c70889ef0d0c8b
widget: Get rid of parent_sensitive flag

Instead rely on state_flags & GTK_STATE_FLAG_INSENSITIVE to tell us if a
widget is sensitive.
This has the huge benefit that the way the widget is actually rendered
corresponds to the return value of gtk_widget_is_sensitive().

As a side effect, we do not ever allow unsetting the
GTK_STATE_FLAG_INSENSITIVE for a widget the is set to not be sensitive
(via gtk_widget_set_sensitive()). This way we stop propagation of making
stuff sensitive at insensitive widgets.

https://bugzilla.gnome.org/show_bug.cgi?id=642918
gtk/gtkwidget.c